package com.she.olympic;

import com.she.olympic.R;

import com.adon.ar.test.ARExampleActivity;

import android.app.Activity;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.Window;
import android.widget.RelativeLayout;


public class MyAppActivity extends Activity {
	

	MainGroup mViewGroup;
	LayoutInflater mInflater;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
		super.onCreate(savedInstanceState);
		this.requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.main);
		
		mViewGroup =(MainGroup) findViewById(R.id.maing);
		mViewGroup.getChildAt(0).setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				MyAppActivity.this.finish();
				Intent it = new Intent();
				Bundle bundle = new Bundle();
				bundle.putBoolean("pushIn", false);
				it.putExtras(bundle);
				it.setClass(MyAppActivity.this, TreeActivity.class);
				startActivity(it);
				System.gc();
			}
		});
		
		}
	
	@Override
	public void onBackPressed() {
		android.os.Process.killProcess(android.os.Process.myPid());
		super.onBackPressed();
	}
	
	

}
